import { GetCategory } from "@/api/news.js";
import {reactive} from "@vue/composition-api"
export function commom (){
    const categoryItem = reactive({
        item:[]
    })
    const getInfoCategory = (params) => {
        GetCategory({}).then(res=>{
            console.log(res)
            categoryItem.item = res.data.data.data
        }).catch(error=>{

        })
    }
    return{
        getInfoCategory,
        categoryItem
    }
}